/* user-center.css - 用户中心页特定样式 */

/* 用户概览卡片 */
.user-profile-card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.user-profile-header {
  background-color: var(--color-primary);
  padding: 1.5rem;
  color: white;
  position: relative;
}

.user-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  margin-bottom: -3rem;
  position: relative;
  box-shadow: var(--shadow-md);
  background-color: white;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-body {
  padding: 3.5rem 1.5rem 1.5rem;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.user-role {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.user-stat-item {
  text-align: center;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
}

.user-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.user-stat-label {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 0.25rem;
}

/* 选项卡样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.tab:hover {
  color: var(--color-primary);
}

.tab-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content-active {
  display: block;
}

/* 设置项样式 */
.settings-group {
  margin-bottom: 1.5rem;
}

.settings-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
}

.settings-group-title i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-item-label {
  font-weight: 500;
}

.settings-item-value {
  color: rgba(0, 0, 0, 0.6);
}

/* 表单样式增强 */
.form-row {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.2);
  outline: none;
}

/* 头像上传区域 */
.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.avatar-upload:hover {
  border-color: var(--color-primary);
  background-color: rgba(45, 106, 79, 0.05);
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.avatar-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
}

.avatar-upload-text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}
